﻿// -----------------------------------------------------------------------
// <copyright file="PlayerInfo.cs" company="Microsoft">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace B13_Ex02
{
    using System;
    using System.Collections.Generic;
    using System.Text;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class PlayerInfo
    {
        private readonly char m_PieceColor;
        private readonly char m_PieceColorKing;
        private readonly int m_PlayerDirection;
        private string m_PlayerName;
        private byte m_Points = 0;
        private byte m_TotalPoints = 0;
        private byte m_Victories = 0;
        private bool m_IsHuman = true;
        private bool m_IsActive = false;
        private int m_xCurrent, m_yCurrent, m_xFuture, m_yFuture;

        public PlayerInfo(char i_PieceColor, char i_PieceColorKing, int i_PlayerDirection, bool i_IsActive)
        {
            m_PieceColor = i_PieceColor;
            m_PieceColorKing = i_PieceColorKing;
            m_PlayerDirection = i_PlayerDirection;
            m_IsActive = i_IsActive;
        }

        public bool IsActive
        {
            get { return m_IsActive; }
            set { m_IsActive = value; }
        }

        public bool IsHuman
        {
            get { return m_IsHuman; }
            set { m_IsHuman = value; }
        }

        public string PlayerName
        {
            get { return m_PlayerName; }
            set { m_PlayerName = value; }
        }

        public byte Points
        {
            get { return m_Points; }
            set { m_Points = value; }
        }

        public byte TotalPoints
        {
            get { return m_TotalPoints; }
            set { m_TotalPoints = value; }
        }

        public byte Victories
        {
            get { return m_Victories; }
            set { m_Victories = value; }
        }

        public char Color
        {
            get { return m_PieceColor; }
        }

        public char ColorKing
        {
            get { return m_PieceColorKing; }
        }

        public int Direction
        {
            get { return m_PlayerDirection; }
        }

        public int xCurrent
        {
            get { return m_xCurrent; }
            set { m_xCurrent = value; }
        }

        public int yCurrent
        {
            get { return m_yCurrent; }
            set { m_yCurrent = value; }
        }

        public int xFuture
        {
            get { return m_xFuture; }
            set { m_xFuture = value; }
        }

        public int yFuture
        {
            get { return m_yFuture; }
            set { m_yFuture = value; }
        }
    }
}
